﻿//*** Aulac Soft ***//
//* Author: H.Rin **//
//* Code Update: 11/06/2010 *//

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Aulac.Rsc.Bss.Tags;

namespace Aulac.Client.Controls.Bss
{
    public class InfoGrid
    {
        public class GridBuyItem
        {
            /// <summary>
                /// Mã hàng
                /// </summary>
                public string ItemPrkID = tagVch.VchBuyLineItem.ItemPrkID ;
                /// <summary>
                /// Ghi chu
                /// </summary>
                public string NoteLine = tagVch.VchBuyLineItem.NoteLine;
                /// <summary>
                /// Quy cách
                /// </summary>
                public string Specification = tagVch.VchBuyLineItem.Specification;
                /// <summary>
                /// Đơn vị tính
                /// </summary>
                public string Unit = tagVch.VchBuyLineItem.Unit;
                /// <summary>
                /// Số lượng
                /// </summary>
                public string Quantity = tagVch.VchBuyLineItem.Quantity;
                /// <summary>
                /// Đơn giá
                /// </summary>
                public string UnitPrice = tagVch.VchBuyLineItem.UnitPrice;
                /// <summary>
                /// Thành tiền
                /// </summary>
                public string AmtLineInExc = tagVch.VchBuyLineItem.AmtLineInExc;
                /// <summary>
                /// VAT
                /// </summary>
                public string VAT = tagVch.VchBuyLineItem.VAT;
                /// <summary>
                /// Tiền thuế
                /// </summary>
                public string AmtTaxLineInExc = tagVch.VchBuyLineItem.AmtTaxLineInExc;


                public string ItemGrpName = tagItems.ItemGrps.ItemGrpName;
                public string ItemGrpID = tagItems.ItemGrps.ItemGrpID;
                public string ItemName = tagItems.Items.ItemName;
                public string ItemGrpPrkID = tagItems.ItemGrps.ItemGrpPrkID;
      
                public string ItemLine = tagVch.VchBuyLineItem.ItemLine;
                public GridBuyItem(string _ItemsPrkID, string _NoteLine, string _Specification, string _Unit, string _Quantity, string _UnitPrice, string _AmtLineInExc, string _VAT, string _AmtTaxLineInExc, string _ItemLine, string _ItemGrpID, string _ItemName, string _ItemGrpPrkID)
                {
                    this.ItemGrpPrkID = _ItemsPrkID;
                    this.NoteLine = _NoteLine;
                    this.Specification = _Specification;
                    this.Unit = _Unit;
                    this.Quantity = _Quantity;
                    this.UnitPrice = _UnitPrice;
                    this.VAT = _VAT;
                    this.AmtTaxLineInExc = _AmtTaxLineInExc;
                    this.AmtLineInExc = _AmtLineInExc;
                   
                    this.ItemLine = _ItemLine;
                    this.ItemGrpID = _ItemGrpID;
                    this.ItemGrpPrkID = _ItemGrpPrkID;
                    this.ItemName = _ItemName;
                }
                public GridBuyItem(){}
        }

        public class GridBuyCapAss
        {
            public string ItemLine = tagVch.VchBuyLineCapAss.ItemLine;
            public string CapAssPrkID = tagVch.VchBuyLineCapAss.CapAssPrkID;
            public string CapAssName = tagVch.VchBuyLineCapAss.CapAssName;
            public string ItemGrpPrkID = tagVch.VchBuyLineCapAss.ItemGrpPrkID;

            public string Quantity = tagVch.VchBuyLineCapAss.Quantity;
            public string DeptPrkID = tagVch.VchBuyLineCapAss.DeptPrkID;
            public string PriceBuyInExc = tagVch.VchBuyLineCapAss.PriceBuyInExc;
            public string AmtLineInExc = tagVch.VchBuyLineCapAss.AmtLineInExc;
            public string AmtOrgPriceLine = tagVch.VchBuyLineCapAss.AmtOrgPriceLine;

            public string AmtOrgPriceLineInExc = tagVch.VchBuyLineCapAss.AmtOrgPriceLineInExc;
            public string TaxRatePrkID = tagVch.VchBuyLineCapAss.TaxRatePrkID;
            public string TaxRate = tagVch.VchBuyLineCapAss.TaxRate;
            public string AmtTaxLine = tagVch.VchBuyLineCapAss.AmtTaxLine;
            public string AccTaxPrkID = tagVch.VchBuyLineCapAss.AccTaxPrkID;

            public string PriceBuy = tagVch.VchBuyLineCapAss.PriceBuy;
            public string AmtLine = tagVch.VchBuyLineCapAss.AmtLine;
            public string AmtTaxLineInExc = tagVch.VchBuyLineCapAss.AmtTaxLineInExc;

            public string CapAssID = tagVch.VchBuyLineCapAss.CapAssID;
            public string DeptID = tagVch.VchBuyLineCapAss.DeptID;
            public string AccTaxID = tagVch.VchBuyLineCapAss.AccTaxID;
            public string ItemGrpID = tagVch.VchBuyLineCapAss.ItemGrpID;

            public GridBuyCapAss(string _CapAssPrkID, string _CapAssName, string _ItemGrpPrkID, string _Quantity, string _DeptPrkID, string _PriceBuyInExc, string _AmtLineInExc, string _AmtOrgPriceLine, string _ItemLine, string _TaxRatePrkID, string _TaxRate, string _AmtTaxLine, string _AccTaxPrkID, string _PriceBuy, string _AmtLine, string _AmtTaxLineInExc, string _AmtOrgPriceLineInExc, string _CapAssID, string _DeptID, string _AccTaxID, string _ItemGrpID)
                {
                    this.ItemGrpPrkID = _ItemGrpPrkID;
                    this.CapAssPrkID = _CapAssPrkID;
                    this.CapAssName = _CapAssName;
                    this.Quantity = _Quantity;
                    this.DeptPrkID = _DeptPrkID;
                    this.PriceBuyInExc = _PriceBuyInExc;
                    this.AmtOrgPriceLine = _AmtOrgPriceLine;
                    this.ItemLine = _ItemLine;
                    this.TaxRatePrkID = _TaxRatePrkID;
                    this.TaxRate = _TaxRate;
                    this.AmtTaxLine = _AmtTaxLine;
                    this.AccTaxPrkID = _AccTaxPrkID;
                    this.PriceBuy = _PriceBuy;
                    this.AmtLine = _AmtLine;
                    this.AmtTaxLineInExc = _AmtTaxLineInExc;
                    this.AmtLineInExc = _AmtLineInExc;
                    this.AmtOrgPriceLineInExc = _AmtOrgPriceLineInExc;

                    this.CapAssID = _CapAssID;
                    this.DeptID = _DeptID;
                    this.AccTaxID = _AccTaxID;
                    this.ItemGrpID = _ItemGrpID;
                }
             public GridBuyCapAss() { }

        }
        public class GridSellCapAss
        {
            public string CapAssPrkID = tagVch.VchSellLineCapAss.CapAssPrkID;
            public string CapAssID = tagItems.CapAss.CapAssID;
            public string CapAssName = tagItems.CapAss.CapAssName;
            public string DeptID = tagItems.Department.DeptID;
            public string CostSell = tagVch.VchSellLineCapAss.CostSell;
            public string ItemLine = tagVch.VchSellLineCapAss.ItemLine;

            public GridSellCapAss ( string _CapAssID, string _CapAssName, string _DeptID, string _ItemLine, string _CapAssPrkID, string _CostSell)
            {
                this.CapAssID = _CapAssID;
                this.CapAssName =_CapAssName;
                this.CapAssPrkID = _CapAssPrkID;
                this.CostSell = _CostSell;
                this.DeptID = _DeptID;
                this.ItemLine = _ItemLine;
            }
            public GridSellCapAss(){}
        }

        public class GridTableDepreciation 
        {
            /// <summary>
            /// Mã tài sản
            /// </summary>
            public string CapAssPrkID = tagTab.TabLineDepr.CapAssPrkID;
            /// <summary>
            /// Phòng ban, bộ phận
            /// </summary>
            public string DeptPrkID = tagTab.TabLineDepr.DeptPrkID;
            /// <summary>
            /// Nguyên giá
            /// </summary>
            public string OriginalPrice = tagTab.TabLineDepr.OriginalPrice;
            /// <summary>
            /// Tỉ lệ khấu hao tháng
            /// </summary>
            public string DeprRateMonth = tagTab.TabLineDepr.DeprRateMonth;
            /// <summary>
            /// Giá trị tính khấu hao
            /// </summary>
            public string DeprValue = tagTab.TabLineDepr.DeprValue;
            /// <summary>
            /// Giá trị khấu hao tháng
            /// </summary>
            public string DeprValueMonth = tagTab.TabLineDepr.DeprValueMonth;
            /// <summary>
            /// Chỉ số dòng
            /// </summary>
            public string ItemLine = tagTab.TabLineDepr.ItemLine;

            public string CapAssID = tagTab.TabLineDepr.CapAssID;
            public string DeptID = tagTab.TabLineDepr.DeptID;
            public string CapAssName = tagTab.TabLineDepr.CapAssName;
            

            public GridTableDepreciation(string _CapAssPrkID, string _DeptPrkID, string _OriginalPrice, string _DeprRateMonth, string _DeprValue, string _DeprValueMonth, string _ItemLine, string _CapAssID, string _DeptID)
            {
                this.CapAssPrkID = _CapAssPrkID;
                this.DeptPrkID = _DeptPrkID;
                this.OriginalPrice = _OriginalPrice;
                this.DeprRateMonth = _DeprRateMonth;
                this.DeprValue = _DeprValue;
                this.DeprValueMonth = _DeprValueMonth;
                this.ItemLine = _ItemLine;
                this.CapAssID = _CapAssID;
                this.DeptID = _DeptID;
            }
            public GridTableDepreciation() { }
        }
    }
}
